package com.threeox.commonlibrary.entity;

import com.threeox.ormlibrary.annotation.create.Column;
import com.threeox.ormlibrary.annotation.create.Table;
import com.threeox.ormlibrary.entity.BaseORM;

/**
 * 
 * @ClassName: PictureMsg
 * 
 * @Description: TODO(图片存储的数据库)
 * 
 * @author 赵屈犇
 * 
 * @date 2016-9-12 上午11:19:47
 * 
 */
@Table
public class PictureMsg extends BaseORM {

	public static final String TABLENAME = "PictureMsg";
	
	@Column(isAutoIncrement = true, isPrimary = true)
	private Integer id;
	@Column
	private String locUrl;// 本地地址
	@Column
	private String serveUrl;// 服务地址
	@Column
	private String relevId;// 关联的Id
	@Column(defaultVal = "0")
	private Integer state;// 状态 默认为0

	public PictureMsg() {
	}

	public PictureMsg(String locUrl, String relevId) {
		this.locUrl = locUrl;
		this.relevId = relevId;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLocUrl() {
		return locUrl;
	}

	public void setLocUrl(String locUrl) {
		this.locUrl = locUrl;
	}

	public String getServeUrl() {
		return serveUrl;
	}

	public void setServeUrl(String serveUrl) {
		this.serveUrl = serveUrl;
	}

	public String getRelevId() {
		return relevId;
	}

	public void setRelevId(String relevId) {
		this.relevId = relevId;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
}
